        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>Filter class / box2d Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="box2d" data-type="Filter">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../box2d.html">box2d</a> &rsaquo; <a href="../box2d/Filter.html">Filter</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>Filter</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<pre class="source">
class Filter {
 /**
  * Collision category bits.
  */
 int categoryBits;

 /**
  * Collision mask bits. These are the categories that this shape would accept
  * for collision.
  */
 int maskBits;

 /**
  * Collision groups allow a certain group of objects to never collide
  * (negative) or always collide (positive). A groupIndex value of 0 means no
  * collision group.
  */
 int groupIndex;

 /**
  * Constructs a new filter with everything set to 0.
  */
 Filter() : categoryBits = 0, maskBits = 0, groupIndex = 0 { }

 /**
  * Constructs a new Filter that is a copy of the other filter.
  */
 Filter.copy(Filter other) :
   categoryBits = other.categoryBits,
   maskBits = other.maskBits,
   groupIndex = other.groupIndex { }

 /**
  * Sets this filter equal to the given filter.
  */
 void setFrom(Filter other) {
   categoryBits = other.categoryBits;
   maskBits = other.maskBits;
   groupIndex = other.groupIndex;
 }
}
</pre>
</div>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="Filter">
<button class="show-code">Code</button>
new <strong>Filter</strong>() <a class="anchor-link" href="#Filter"
              title="Permalink to Filter.Filter">#</a></h4>
<div class="doc">
<p>Constructs a new filter with everything set to 0.</p>
<pre class="source">
Filter() : categoryBits = 0, maskBits = 0, groupIndex = 0 { }
</pre>
</div>
</div>
<div class="method"><h4 id="Filter.copy">
<button class="show-code">Code</button>
new <strong>Filter.copy</strong>(<a href="../box2d/Filter.html">Filter</a> other) <a class="anchor-link" href="#Filter.copy"
              title="Permalink to Filter.Filter.copy">#</a></h4>
<div class="doc">
<p>Constructs a new Filter that is a copy of the other filter.</p>
<pre class="source">
Filter.copy(Filter other) :
 categoryBits = other.categoryBits,
 maskBits = other.maskBits,
 groupIndex = other.groupIndex { }
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="categoryBits">
<button class="show-code">Code</button>
int         <strong>categoryBits</strong> <a class="anchor-link"
            href="#categoryBits"
            title="Permalink to Filter.categoryBits">#</a>
        </h4>
        <div class="doc">
<pre class="source">
categoryBits
</pre>
</div>
</div>
<div class="field"><h4 id="groupIndex">
<button class="show-code">Code</button>
int         <strong>groupIndex</strong> <a class="anchor-link"
            href="#groupIndex"
            title="Permalink to Filter.groupIndex">#</a>
        </h4>
        <div class="doc">
<pre class="source">
groupIndex
</pre>
</div>
</div>
<div class="field"><h4 id="maskBits">
<button class="show-code">Code</button>
int         <strong>maskBits</strong> <a class="anchor-link"
            href="#maskBits"
            title="Permalink to Filter.maskBits">#</a>
        </h4>
        <div class="doc">
<pre class="source">
maskBits
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="setFrom">
<button class="show-code">Code</button>
void <strong>setFrom</strong>(<a href="../box2d/Filter.html">Filter</a> other) <a class="anchor-link" href="#setFrom"
              title="Permalink to Filter.setFrom">#</a></h4>
<div class="doc">
<p>Sets this filter equal to the given filter.</p>
<pre class="source">
void setFrom(Filter other) {
 categoryBits = other.categoryBits;
 maskBits = other.maskBits;
 groupIndex = other.groupIndex;
}
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
